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