private System.Collections.IEnumerator DisableObject() { IPushableObject player = this.GetComponentInParent<IPushableObject>(); yield return new WaitForEndOfFrame(); this.GetComponentInParent<PlayerController>().OrderRemovePowerUp(); player.Drow(); }
private void Drow(IPushableObject objectToDrow) { objectToDrow.Drow(); }