public void Enter(Moose moose) { _moose = moose; _moose.sleepyFX.Play(); _moose.isSleepState = true; _moose._navMeshAgent.speed = 0; }
// Called after Moose checks Player has Last Spell Book. public void MooseExit() { foreach (var Moose in Mooses) { Moose.FinalSpellExit(); } }
/// <inheritdoc /> public void Execute(IConsoleWriter consoleWriter) { try { Moose.Start(_bundleName); } catch (Exception ex) { consoleWriter.WriteError(ex.ToString()); } }
// Update is called once per frame void Update() { if (planex == null) { planex = GameObject.Find("Plane"); Vector3 pos = planex.transform.position; GameObject Moose; Moose = Instantiate(moose, pos, Quaternion.identity) as GameObject; Moose.SetActive(true); } }
/// <summary> Implements the entry point for the execution engine. </summary> /// <param name="args">Execution arguments</param> static void Main(string[] args) { // Show a console window if desired if (args.Any(arg => arg == "-consoleLog")) { ConsoleManager.ShowConsoleWindow(); } // Configure logging ConfigureLog(); ILog log = LogManager.GetLog(typeof(EntryPoint)); log.Info("Log writer initialized"); string platformPluginName = "motoi.platform.application"; try { EventWaitHandle waitHandle = new EventWaitHandle(false, EventResetMode.ManualReset); // Exit application when platform plug-in has been stopped Moose.PluginStopped += (sender, eventArgs) => { string stoppedPluginName = eventArgs.SymbolicPluginName; if (stoppedPluginName != platformPluginName) { return; } waitHandle.Set(); }; // Start platform plug-in Moose.Start(platformPluginName); // Wait until the application is ready to exit waitHandle.WaitOne(); // Hide the console window ConsoleManager.HideConsoleWindow(); } catch (Exception ex) { log.Error($"Error on starting plug-in '{platformPluginName}'", ex); } }
public void Enter(Moose moose) { _moose = moose; _moose.isPatrolState = true; _moose._navMeshAgent.speed = _moose.animalStats.patrolSpeed; }
public void Enter(Moose moose) { _moose = moose; _moose.isIdleState = true; _moose._navMeshAgent.speed = 0;// }
public void Enter(Moose moose) { _moose = moose; _moose.isAwakenState = true; }
public void Enter(Moose moose) { _moose = moose; _moose._navMeshAgent.speed = _moose.animalStats.chaseSpeed; _moose.isChaseState = true; }
public void Enter(Moose moose) { _moose = moose; _moose.isDrinkState = true; }
public void Enter(Moose moose) { _moose = moose; _moose._navMeshAgent.speed = 0; _moose.isAttackState = true; }
public void Enter(Moose moose) { _moose = moose; _moose.isTakeDamageState = true; }
private void Start() { m = new Moose(); }
public void Enter(Moose moose) { _moose = moose; _moose.isDeathState = true; _moose._navMeshAgent.enabled = false; }