Exemplo n.º 1
0
    public virtual void Awake()
    {
        E_GRADE = CHARACTER_GRADE.NORMAL;

        mySprite = GetComponent <SpriteRenderer> ();

        m_anim = gameObject.GetComponent <Animator> ();

        cPlayerData = GameManager.Instance.player;
    }
Exemplo n.º 2
0
    public virtual void Awake()
    {
        E_GRADE = CHARACTER_GRADE.NORMAL;

        mySprite = GetComponent <SpriteRenderer> ();

        m_VecEndPos = GameObject.Find("EndPoint").transform.position;

        spawnTransform = GameObject.Find("SpawnPoint").gameObject.transform;

        m_VecStartPos = spawnTransform.position;

        m_anim = gameObject.GetComponent <Animator> ();

        cPlayerData = GameManager.Instance.player;
    }