void Start()
    {
        offsetWayPoint   = transform.position;
        wayPointsManager = WayPointsManager.Instance;

        anim = GetComponent <Animator>();
        RagdollOn(false);
    }
Пример #2
0
 void Start()
 {
     gameManager      = GameManager.Instance;
     cameraController = CameraController.Instance;
     wayPointsManager = WayPointsManager.Instance;
     anim             = GetComponent <Animator>();
     RagdollOn(false);
 }
Пример #3
0
 public override void OnStart()
 {
     if (zone.Value != null)
     {
         wpManager = GameObject.Find(zone.Value).GetComponent <WayPointsManager>();
     }
     else
     {
         wpManager = transform.GetComponentInParent <WayPointsManager>();
     }
 }
Пример #4
0
 void AwakeSingleton()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(this.gameObject);
     }
 }
Пример #5
0
 void Awake()
 {
     Instance = this;
 }