Beispiel #1
0
 void Start()
 {
     dsd = this.gameObject.GetComponent <DelayedSelfDestroy>();
     dsd.SetStarted(false);
 }
Beispiel #2
0
 void OnCollisionEnter2D(Collision2D col)
 {
     Debug.Log("Trigger collider2d enter");
     gameObject.GetComponent <Animator>().SetBool("isCollided", true);
     dsd.SetStarted(true);
 }