private ShockwavePhysics OnDemandGetController()
 {
     if (_Controller == null)
     {
         _Controller = GameObject.FindObjectOfType <ShockwavePhysics>();
     }
     return(_Controller);
 }
 public void SetController(ShockwavePhysics controller)
 {
     _Controller = controller;
 }
Exemplo n.º 3
0
 private void Awake()
 {
     _Controller = GetComponent <ShockwavePhysics>();
 }