private void InitializationDuJoueur() { Human = ScriptFactory.GetGameObjectHuman(); HumanPropertie = ScriptFactory.GetScriptAttachedOnGO <ScriptPnjProperties>(Human); HumanDeplacement = ScriptFactory.GetScriptAttachedOnGO <ScriptDeplacementSupervise>(Human); HumanDeplacement.CanMove = true; }
// METHODES START private void InitializationDesBots() { Bots = ScriptFactory.GetGameObjectsBot(); BotsProperties = new ScriptPnjProperties[Bots.Length]; BotsDialogues = new ScriptParler[Bots.Length]; BotsTriggers = new ScriptTrigger[Bots.Length]; BotsDeplacements = new ScriptDeplacementAutomatique[Bots.Length]; foreach (GameObject bot in Bots) { Debug.Log("Chargement des bots..."); BotsProperties[i] = ScriptFactory.GetScriptAttachedOnGO <ScriptPnjProperties>(bot); BotsDeplacements[i] = ScriptFactory.GetScriptAttachedOnGO <ScriptDeplacementAutomatique>(bot); BotsTriggers[i] = ScriptFactory.GetScriptTriggerInChildOf(bot); BotsDialogues[i] = ScriptFactory.GetScriptParler(bot); BotsDialogues[i].IsTalking = false; i++; } }