void Awake() { b_ready = false; b_duel = false; b_outOfBounds = false; b_timeUp = false; b_blueWins = false; b_redWins = false; b_blueDeath = false; b_redDeath = false; clearTxt(); audioClipManager = GetComponent <AudioClipManager>(); announcements = new Queue <OnAnnounce>(); }
void Start() { rigidBody2D = GetComponent<Rigidbody2D>(); boxCollider2D = GetComponent<BoxCollider2D>(); audioClipManager = GetComponent<AudioClipManager>(); boxCollider2D.isTrigger = true; if(explosion) explosion.enableEmission = false; switch(target.player) { case Dino.Player.Player1: targetHead = GameObject.Find("Blue_Head").transform; break; case Dino.Player.Player2: targetHead = GameObject.Find("Red_Head").transform; break; } rigidBody2D.velocity = new Vector2(0, -100); }
void Start() { rigidBody2D = GetComponent <Rigidbody2D>(); boxCollider2D = GetComponent <BoxCollider2D>(); audioClipManager = GetComponent <AudioClipManager>(); boxCollider2D.isTrigger = true; if (explosion) { explosion.enableEmission = false; } switch (target.player) { case Dino.Player.Player1: targetHead = GameObject.Find("Blue_Head").transform; break; case Dino.Player.Player2: targetHead = GameObject.Find("Red_Head").transform; break; } rigidBody2D.velocity = new Vector2(0, -100); }
void Awake() { b_ready = false; b_duel = false; b_outOfBounds = false; b_timeUp = false; b_blueWins = false; b_redWins = false; b_blueDeath = false; b_redDeath = false; clearTxt(); audioClipManager = GetComponent<AudioClipManager>(); announcements = new Queue<OnAnnounce>(); }