コード例 #1
0
ファイル: Animation.cs プロジェクト: lllpanlll/GroundZero_PG
        void Start()
        {
            moveCtrfl     = GetComponent <T2.MoveCtrl>();
            basicAttack   = GetComponent <T2.BasicAttack>();
            moveCtrfl     = GetComponent <T2.MoveCtrl>();
            animator      = GetComponentInChildren <Animator>();
            mgr           = GetComponent <T2.Manager>();
            trPlayerModel = GameObject.FindGameObjectWithTag(Tags.PlayerModel).transform;


            fSpeed = moveCtrfl.GetMoveSpeed();
        }
コード例 #2
0
        void Awake()
        {
            curSkill = T2.Skill.IdleSkill.GetInstance();

            oPlayer       = GameObject.FindGameObjectWithTag(Tags.Player);
            trPlayerModel = GameObject.FindGameObjectWithTag(Tags.PlayerModel).transform;

            mgr         = GetComponent <T2.Manager>();
            moveCtrl    = GetComponent <T2.MoveCtrl>();
            controller  = GetComponent <CharacterController>();
            basicAttack = GetComponent <T2.BasicAttack>();
            animator    = GetComponentInChildren <Animator>();
            cam         = Camera.main;
            trCamPivot  = GameObject.FindGameObjectWithTag(Tags.CameraTarget).transform;
        }
コード例 #3
0
 void Awake()
 {
     basicAttack = GameObject.FindGameObjectWithTag(Tags.Player).GetComponent <T2.BasicAttack>();
 }