addStun() public method

public addStun ( float duration ) : void
duration float
return void
Exemplo n.º 1
0
 void OnTriggerEnter(Collider col)
 {
     if(col.gameObject.tag == "Player")
     {
         crowdControllable = col.GetComponent<CrowdControllable>();
         crowdControllable.addStun(2);
         Destroy(gameObject);
     }
 }