Пример #1
0
        private void SetData_EnemyShipFiring(PoolableEnemy spawnedObject)
        {
            EnemyShipFiring theComponent = spawnedObject.enemyShipFiring;

            theComponent.minFireFrames = minFireFrames;
            theComponent.maxFireFrames = maxFireFrames;
        }
Пример #2
0
        public override void DrawInspector()
        {
            base.DrawInspector();
            EditorGUILayout.Space();

            //theEnemyData.DrawInspector ();

            killableObject = EditorGUILayout.ObjectField
                                 ("Killable Object", killableObject, typeof(KillableObject), true)
                             as KillableObject;

            enemyShipMovement = EditorGUILayout.ObjectField
                                    ("Enemy Ship Movement", enemyShipMovement, typeof(EnemyShipMovement), true)
                                as EnemyShipMovement;

            enemyShipFiring = EditorGUILayout.ObjectField
                                  ("Enemy Ship Firing", enemyShipFiring, typeof(EnemyShipFiring), true)
                              as EnemyShipFiring;

            projectileShooter = EditorGUILayout.ObjectField
                                    ("Projectile Shooter", projectileShooter, typeof(ProjectileShooter), true)
                                as ProjectileShooter;
        }