Exemplo n.º 1
0
    [HideInInspector] public bool isVersusModeOn; // ADDED FOR VERSUS MODE //

    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
    }
Exemplo n.º 2
0
    // 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
    }
Exemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     manager = GameObject.Find("Manager").GetComponent <Scr_Manager>();
 }