[HideInInspector] public bool isVersusModeOn; // ADDED FOR VERSUS MODE // private void Awake() { if (instance == null) { instance = this; } }
// Start is called before the first frame update void Start() { needing = this.gameObject.GetComponentInChildren <TextMeshProUGUI>(); boolOnce = true; elManager = GameObject.Find("Manager").GetComponent <Scr_Manager>(); //tr = this.transform; NeedCreator(); //appele la creation du besoin satisfactionPoint = satisfactionMaxPoint; //necessaire pour faire un % du slide de la satisfactionBar satisfactionBar.value = CalculBar(); transform.position = waypoints[waypointIndex].transform.position; //fait apparaitre le NPC sur le 1er Waypoint 0 }
// Start is called before the first frame update void Start() { manager = GameObject.Find("Manager").GetComponent <Scr_Manager>(); }