Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
    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;
    }
Ejemplo n.º 3
0
    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");
    }
Ejemplo n.º 4
0
 void Start()
 {
     god = GameObject.FindGameObjectWithTag ("God").GetComponent<UnifiedSuperClass> ();
 }
Ejemplo n.º 5
0
 void Start()
 {
     god = GameObject.FindGameObjectWithTag("God").GetComponent<UnifiedSuperClass>();
     currentMenu = "Main";
     gameLoaded = false;
     currentCharacters = god.getCurrentCharacters();
     unlockedCharacters = god.getUnlockedCharacters();
 }
Ejemplo n.º 6
0
 void Awake()
 {
     god = GameObject.FindGameObjectWithTag("God").GetComponent<UnifiedSuperClass>();
     skillsController = god.SkillsController;
     atkController = transform.root.GetComponentInChildren<AttackController>();
     //		Debug.Log(atkController.SecondSkillLock);
 }
Ejemplo n.º 7
0
    //    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;
    }