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!"); } }
//*************************************************************// void Awake () { TRMadraControl._meInstance = this; _myCharacterAnimationControl = GetComponent < CharacterAnimationControl > (); _startPosition = VectorTools.cloneVector3 ( transform.localPosition ); }
//public bool isAttacking; private void Start() { playerRef = GameObject.FindWithTag("Player"); charAnimContRef = playerRef.GetComponent <CharacterAnimationControl>(); charAnimatiorRef = playerRef.GetComponent <Animator>(); attackAnimEventRef = playerRef.GetComponent <AttackAnimEvent>(); hit = false; }