void Awake() { // Setting up the reference. god = GameObject.FindGameObjectWithTag ("God").GetComponent<UnifiedSuperClass> (); currentPlayer = god.getCharacterFromSlot (0).CharacterGameObject.transform; Debug.Log(currentPlayer.tag); // Debug.Log(currentPlayer.tag); }
void Start() { god = GameObject.FindGameObjectWithTag ("God").GetComponent<UnifiedSuperClass> (); characters = god.getCurrentCharacters(); camera = GetComponent<CameraFollow>(); // Debug.Log("Characters size " + characters.Count); current = characters[0].CharacterGameObject; lastSafeLocation = current.transform.position; }
void Awake() { _skills = new List<Skills>(); _utility = new List<Skills>(); god = GameObject.FindGameObjectWithTag("God").GetComponent<UnifiedSuperClass>(); skillsController = god.SkillsController; anim = transform.parent.gameObject.GetComponent<Animator> (); anim.SetInteger ("Skill", 1); currentSkill = anim.GetInteger ("Skill"); }
void Start() { god = GameObject.FindGameObjectWithTag ("God").GetComponent<UnifiedSuperClass> (); }
void Start() { god = GameObject.FindGameObjectWithTag("God").GetComponent<UnifiedSuperClass>(); currentMenu = "Main"; gameLoaded = false; currentCharacters = god.getCurrentCharacters(); unlockedCharacters = god.getUnlockedCharacters(); }
void Awake() { god = GameObject.FindGameObjectWithTag("God").GetComponent<UnifiedSuperClass>(); skillsController = god.SkillsController; atkController = transform.root.GetComponentInChildren<AttackController>(); // Debug.Log(atkController.SecondSkillLock); }
// private bool alive; void Awake() { god = GameObject.FindGameObjectWithTag ("God").GetComponent<UnifiedSuperClass>(); healthBar = gameObject.GetComponentInChildren<SpriteRenderer> (); anim = GetComponent<Animator>(); // Getting the intial scale of the healthbar (whilst the player has full health). healthScale = healthBar.transform.localScale; }