Exemplo n.º 1
0
        void Awake()
        {
            if (playerDisplay)
            {
                entityDisplay = playerDisplay;
            }

            anim       = gameObject.GetComponent <Animator>();
            playerAmmo = gameObject.GetComponent <PlayerAmmo>();
            body       = gameObject.GetComponent <Rigidbody>();

            if (marinesType == MarinesType.MajCarter)
            {
                weapCCarter = GetComponent <WeaponControllerCarter>();
            }
            else
            {
                weapCHartman = GetComponent <WeaponControllerHartman>();
            }

            GameController.Player = this;
            GameController.TopDownCamera.SetTarget(transform);
        }
Exemplo n.º 2
0
        void Awake()
        {
            if (playerDisplay)
            {
                entityDisplay = playerDisplay;
            }

            anim = gameObject.GetComponent<Animator>();
            playerAmmo = gameObject.GetComponent<PlayerAmmo>();
            body = gameObject.GetComponent<Rigidbody>();

            if (marinesType == MarinesType.MajCarter)
            { weapCCarter = GetComponent<WeaponControllerCarter>(); }
            else
            { weapCHartman = GetComponent<WeaponControllerHartman>(); }

            GameController.Player = this;
            GameController.TopDownCamera.SetTarget(transform);
            
        }