protected virtual void Awake() { anim = GetComponent <Character>().model.GetComponent <Animator>(); rb = GetComponent <Rigidbody>(); detectGround = GetComponent <DetectGround>(); characterSkill = GetComponent <CharacterSkill>(); skillHeadButt = GetComponent <CharacterSkillHeadButt>(); skillKick = GetComponent <CharacterSkillKick>(); skillJump = GetComponent <CharacterSkillJump>(); canMove = true; lastPosition = transform.position; }
void Start() { player = GameObject.FindGameObjectWithTag("Player1").GetComponent <CharacterSkill>(); ball = FindObjectOfType <BallBehaviour>(); }