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