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

            cannon.fireTheCannon();

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

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