Пример #1
0
 void Start()
 {
     animator         = GetComponentInChildren <Animator>();
     playSound        = GetComponentInChildren <PlaySound>();
     footRun          = GetComponentInChildren <FootRun>();
     state            = State.Idle;
     health           = GetComponent <Health>();
     targetIndicator  = GetComponentInChildren <TargetIndicator>(true);
     originalPosition = transform.position;
     originalRotation = transform.rotation;
 }