// Start is called before the first frame update protected override void Start() { base.Start(); if (cam == null) { cam = Camera.main; } playerDodge = GetComponent <DodgeController>(); playerTalentController = GetComponent <PlayerTalentController>(); playerMovementController = GetComponent <LandMovementController>(); tonic = GetComponent <Tonic>(); canCharacterAction = true; }
// Start is called before the first frame update protected override void Start() { base.Start(); movementController = GetComponent <LandMovementController>(); if (target == null) { target = GameObject.FindGameObjectWithTag("Player"); } slash = ScriptableObject.CreateInstance <Slash>(); slash.Initialize(gameObject); slash.LongTelegraphTime = .75f; StartCoroutine(ScanForTarget()); }