void Start() { rigidBody2D = GetComponent<Rigidbody2D>(); dino = GetComponentInParent<Dino>(); switch(dino.player) { case Dino.Player.Player1: enemyRigidBody = GameObject.Find("Red_Body").GetComponent<Rigidbody2D>(); //pushForce *= 1; break; case Dino.Player.Player2: enemyRigidBody = GameObject.Find("Blue_Body").GetComponent<Rigidbody2D>(); pushForce *= -1; break; } if(damage_toggle && (name.Contains("Head") || name.Contains("Jaw"))) { push_toggle = false; } }
IEnumerator showSkeleton(Dino dino) { yield return new WaitForSeconds(0.5f); dino.showSkeleton(); }
private void setPlayerWin(Dino.Player player) { switch(player) { case Dino.Player.Player1: break; case Dino.Player.Player2: break; } }
IEnumerator showSkeleton(Dino dino) { yield return(new WaitForSeconds(0.5f)); dino.showSkeleton(); }