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

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