Ejemplo n.º 1
0
    protected override void InitAwake()
    {
        base.InitAwake();
        if (player == null)
        {
            player = transform;
        }

        moveControl = GetComponent <CharacterMoveControl>();

        instance = this;

        if (aniControl == null)
        {
            aniControl = GetComponentInChildren <CharacterAnimationControl>();
        }

        if (aniControl != null)
        {
            aniControl.Weapon = Weapon;
        }
        else
        {
            Debug.Log("[IcarusPlayerController][InitAwake]: CharacterAnimationControl is null!");
        }
    }
Ejemplo n.º 2
0
	//*************************************************************//
	void Awake () 
	{
		TRMadraControl._meInstance = this;
		_myCharacterAnimationControl = GetComponent < CharacterAnimationControl > ();

		_startPosition = VectorTools.cloneVector3 ( transform.localPosition );
	}
Ejemplo n.º 3
0
    //public bool isAttacking;

    private void Start()
    {
        playerRef          = GameObject.FindWithTag("Player");
        charAnimContRef    = playerRef.GetComponent <CharacterAnimationControl>();
        charAnimatiorRef   = playerRef.GetComponent <Animator>();
        attackAnimEventRef = playerRef.GetComponent <AttackAnimEvent>();
        hit = false;
    }