File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Assets/Scripts/Gameplay/GameplayObjects Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,14 @@ public class ServerTossAttack : NetworkBehaviour
25
25
const int k_MaxCollisions = 16 ;
26
26
Collider [ ] m_CollisionCache = new Collider [ k_MaxCollisions ] ;
27
27
28
- const float k_DetonateAfterSeconds = 5f ;
28
+ [ SerializeField ]
29
+ float detonateAfterSeconds = 5f ;
30
+
29
31
float m_DetonateAfterSeconds ;
30
32
31
- const float k_DestroyAfterSeconds = 5.5f ;
33
+ [ SerializeField ]
34
+ float destroyAfterSeconds = 5.5f ;
35
+
32
36
float m_DestroyAfterSeconds ;
33
37
34
38
bool m_Detonated ;
@@ -44,8 +48,8 @@ public override void OnNetworkSpawn()
44
48
m_Started = true ;
45
49
m_Detonated = false ;
46
50
47
- m_DetonateAfterSeconds = Time . fixedTime + k_DetonateAfterSeconds ;
48
- m_DestroyAfterSeconds = Time . fixedTime + k_DestroyAfterSeconds ;
51
+ m_DetonateAfterSeconds = Time . fixedTime + detonateAfterSeconds ;
52
+ m_DestroyAfterSeconds = Time . fixedTime + destroyAfterSeconds ;
49
53
}
50
54
51
55
public override void OnNetworkDespawn ( )
You can’t perform that action at this time.
0 commit comments