//------------------------------------
    //------------------------------------


    // Use this for initialization
    void Start()
    {
        _charactorController = GetComponent <CharacterController> ();
        _animController      = GetComponent <PlayerAnimationControll> ();
        _cameraTransform     = Camera.main.transform;
        _state = State.LOCOMOTION;
    }
Beispiel #2
0
	void Start()
	{
		playerAnimationControll=TranscriptManager._instance.player.GetComponent<PlayerAnimationControll>();
        playerAttack = TranscriptManager._instance.player.GetComponent<PlayerAttack>();
        if(transform.Find("Mask"))
           maskSprite = transform.Find("Mask").GetComponent<UISprite>();  
        btn = this.GetComponent<UIButton>();
    }
Beispiel #3
0
 void Start()
 {
     playerAnimationControll = TranscriptManager._instance.player.GetComponent <PlayerAnimationControll>();
     playerAttack            = TranscriptManager._instance.player.GetComponent <PlayerAttack>();
     if (transform.Find("Mask"))
     {
         maskSprite = transform.Find("Mask").GetComponent <UISprite>();
     }
     btn = this.GetComponent <UIButton>();
 }