Beispiel #1
0
        public void TheCannonFires()
        {
            var cannon = new CannonFirer();

            cannon.fireTheCannon();

            Assert.DoesNotThrow(() => cannon.fireTheCannon());
        }
 void OnEnable()
 {
     cannonFirer = GetComponent <CannonFirer>();
 }
Beispiel #3
0
        public static void Main(string[] args)
        {
            var firer = new CannonFirer();

            firer.fireTheCannon();
        }
Beispiel #4
0
 void OnEnable()
 {
     cannonFirer = GetComponent <CannonFirer>();
     SceneManager.UnloadSceneAsync(BuildSettings.SplashScreenScene);
 }