예제 #1
0
 // 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>();
	}
예제 #3
0
	// 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);
	}
예제 #4
0
    // 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);
	}