Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     movementMachine.Initialize(this);
     characterTransform = CharacterAnimator.transform;
     Collider           = GetComponent <CapsuleCollider>();
     SwordBurstVFX      = GetComponentInChildren <EmissionBurster>();
     CameraController   = FindObjectOfType <Camera>();
     CurrentHP          = MaxHP;
     _hurtLerper        = GetComponentInChildren <MaterialFloatLerper>();
 }
Example #2
0
 private void Awake()
 {
     Nexus = NexusCrowdManager.Instance;
     Anime = GetComponentInChildren <Animator>();
     Agent = GetComponent <NavMeshAgent>();
     if (Player == null)
     {
         Player = FindObjectOfType <PlayerEngine>().transform;
     }
     Machine.Initialize(this);
     if (_hurtLerper == null)
     {
         _hurtLerper = GetComponentInChildren <MaterialFloatLerper>();
     }
 }