コード例 #1
0
        public AsteroidModel()
        {
            SmallerAsteroid = null;
            Player          = null;
            GameManager     = null;

            RigidBody = null;

            MaxThrust    = 0;
            MaxTorque    = 0;
            ScreenTop    = 0;
            ScreenRight  = 0;
            ScreenBottom = 0;
            ScreenLeft   = 0;

            Points = 0;
        }
コード例 #2
0
ファイル: UFOModel.cs プロジェクト: Voltanos/2DUnityAsteroids
        public UFOModel()
        {
            Bullet = null;

            SpriteRenderer = null;
            CircleCollider = null;

            SpaceShipTransform      = null;
            SpaceShipSpriteRenderer = null;
            Player = null;

            GameManager = null;

            RigidBody = null;

            Direction = new Vector2();

            SpawnPositions = new List <Vector3>();

            Speed           = 0;
            ShootingDelay   = 0;
            LastTimeShot    = 0;
            BulletForce     = 0;
            BulletLifespan  = 0;
            SpeedBase       = 0;
            BulletForceBase = 0;
            PointsBase      = 0;
            MinUFOTimer     = 0;
            MaxUFOTimer     = 0;
            ScreenTop       = 0;
            ScreenRight     = 0;
            ScreenBottom    = 0;
            ScreenLeft      = 0;

            Points       = 0;
            CurrentLevel = 0;
        }