Example #1
0
 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();
     }
 }
Example #3
0
 /// <inheritdoc />
 public void Execute(IConsoleWriter consoleWriter)
 {
     try {
         Moose.Start(_bundleName);
     } catch (Exception ex) {
         consoleWriter.WriteError(ex.ToString());
     }
 }
Example #4
0
 // 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);
     }
 }
Example #5
0
        /// <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);
            }
        }
Example #6
0
 public void Enter(Moose moose)
 {
     _moose = moose;
     _moose.isPatrolState       = true;
     _moose._navMeshAgent.speed = _moose.animalStats.patrolSpeed;
 }
Example #7
0
 public void Enter(Moose moose)
 {
     _moose                     = moose;
     _moose.isIdleState         = true;
     _moose._navMeshAgent.speed = 0;//
 }
Example #8
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;
 }
Example #10
0
 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;
 }
Example #13
0
 private void Start()
 {
     m = new Moose();
 }
Example #14
0
 public void Enter(Moose moose)
 {
     _moose = moose;
     _moose.isDeathState          = true;
     _moose._navMeshAgent.enabled = false;
 }