public GameObject invisible_sphere; //Invisible sphere prefab to create the effect void Awake() { hud = GameObject.Find(Objects.HUD).GetComponent <HUD_Controller>(); invisible_sphere.SetActive(false); }
public void Initialize(Sprite image, Vector3 position, float time, HUD_Controller inst, Enums.Characters player, int id_num) { Image img = GetComponent <Image>(); img.sprite = image; img.rectTransform.localPosition = position; life = time; hud_controller = inst; character = player; id = id_num; start_clock = true; }
public ShieldZone shield_zone; //Zone where other characters will follow Barion when invisible shield is on void Awake() { players_manager = GetComponentInParent <PlayersManager>(); hud = GameObject.Find(Objects.HUD).GetComponent <HUD_Controller>(); selection_system = GameObject.Find("SelectionSystem").GetComponent <UnitSelection>(); cooldown_inst = GetComponent <Cooldown>(); agent = GetComponent <NavMeshAgent>(); //State machine idle_state = new BarionIdleState(this); walking_state = new BarionWalkingState(this); moving_box_state = new BarionMovingBoxState(this); hiding_state = new BarionHidingState(this); invisible_sphere_state = new BarionInvisibleSphereState(this); shield_state = new BarionShieldState(this); carry_corpse_state = new BarionCarryCorpseState(this); }
void Awake() { hud_controller = GameObject.Find(Objects.HUD).GetComponent <HUD_Controller>(); }