private void Awake() { rb = GetComponent <Rigidbody>(); navAgent = GetComponent <NavMeshAgent>(); characterAnimation = GetComponent <CharacterAnimation>(); characterAttacker = GetComponent <CharacterAttacker>(); bottomLayerMask = 1 << LayerMask.NameToLayer("Bottom"); obstacleLayerMask = 1 << LayerMask.NameToLayer("Obstacle"); }
// Use this for initialization void Start() { StartCoroutine(MoveToGoal()); projectile = GetComponent<Projectile>(); attacker = GetComponent<CharacterAttacker>(); attacker.targetLayerMask = 1 << LayerMask.NameToLayer("Player"); Events.InvokeActorCreated(this, null); }
// Use this for initialization void Start() { StartCoroutine(MoveToGoal()); projectile = GetComponent <Projectile>(); attacker = GetComponent <CharacterAttacker>(); attacker.targetLayerMask = 1 << LayerMask.NameToLayer("Player"); Events.InvokeActorCreated(this, null); }
private void Awake() { rb = GetComponent <Rigidbody2D>(); characterAnimator = GetComponent <CharacterAnimator>(); characterEffector = GetComponent <CharacterEffector>(); characterAttacker = GetComponent <CharacterAttacker>(); jumpPower = GameConstant.PlayerJumpPower; //jumpPower = 20f; }
private void Awake() { characterMove = GetComponent <CharacterMove>(); characterAttacker = GetComponent <CharacterAttacker>(); }
protected void Awake() { jumpAttacker = GetComponent<CharacterAttacker>(); }
void Awake() { attacker = GetComponent <CharacterAttacker>(); AttackActive = true; }
void Awake() { attacker = GetComponent<CharacterAttacker>(); AttackActive = true; }
protected void Awake() { jumpAttacker = GetComponent <CharacterAttacker>(); }
void WaitForAnimationFinish(CharacterAttacker anim) { anim.OnAttackAnimationEnded -= WaitForAnimationFinish; CallOnFinished(); }