// Start is called before the first frame update void Start() { _state = PlayerState.normalState; _weaponSystems = new GunScriptBase(this); _playerMover = new PlayerMoveBase(this); _cameraController = new CameraControllerBase(this); }
// Use this for initialization void Start () { // initalize the animationstate InitalizeAnimationClips(); //get the move script moveScript = (PlayerMoveBase)this.transform.parent.GetComponent<PlayerMoveBase>(); main = transform.root.GetComponent<PlayerMainLogic>(); }
// Use this for initialization void Start () { aniControlScript = (PlayerAnimationControl)this.transform.FindChild("Male001").GetComponent<PlayerAnimationControl>(); moveBaseScript = (PlayerMoveBase)this.GetComponent<PlayerMoveBase>(); directionIcon = this.transform.FindChild("icon"); specialAttackIcon = this.transform.FindChild("SpecialAttackIcon"); player = gameObject.AddComponent<Player>(); player.Init(1000); SceneMng.instance.AddMainPlayer(player); }
// Use this for initialization void Start() { aniControlScript = (PlayerAnimationControl)this.transform.FindChild("character").GetComponent<PlayerAnimationControl>(); moveBaseScript = (PlayerMoveBase)this.GetComponent<PlayerMoveBase>(); colliderBaseScript = (PlayerColliderBase)this.GetComponent<PlayerColliderBase>(); }
// change the movementState by animation clip void ChangeMovementStateByAnimation(PlayerMoveBase.PlayerMovementState mState) { // Debug.Log("ChangeMovementStateByAnimation ======== "+mState); moveScript.SetMovementState(mState); }