public void Awake() { life = 20; max_Life = life; //Display UI liveDisplay = GameObject.Find("Life_Bar_Filled").GetComponent <Image>(); liveDisplay_back = GameObject.Find("Life_Bar_Back").GetComponent <Image>(); shieldDisplay = GameObject.Find("Shields_UI"); taunt_manager = Camera.main.GetComponent <Taunt_Manager>(); targets = GetComponent <Camera_Focus>().GetCameraTargets(); for (int i = 0; i < targets.Count; i++) { players.Add(targets[i].GetComponent <God_Mode>()); } for (int i = 0; i < targets.Count; i++) { players_Movement.Add(targets[i].GetComponent <Player_Movement>()); control_Vibration.Add(players_Movement[i].gameObject.GetComponent <JoysticVibration_Manager>()); } shake_off = GetComponent <Camere_Shake_Manager>(); Time.timeScale = 1; }
void Start() { sentences = new Queue <string>(); delays = new Queue <float>(); scales_x = new Queue <float>(); scales_y = new Queue <float>(); font_sizes = new Queue <int>(); RectT_canvas = GameObject.Find("Canvas").GetComponent <RectTransform>(); taunt_mng = Camera.main.GetComponent <Taunt_Manager>(); }