示例#1
0
 public static void Clear()
 {
     WaitingToLaunch         = 0;
     MainScript              = null;
     InventoryScript         = null;
     CharacterMovementScript = null;
     MiningScript            = null;
     DrawingScript           = null;
     MapReadService          = null;
     InventoryPanel          = null;
     SoundScript             = null;
 }
示例#2
0
    // Use this for initialization
    public void Start()
    {
        _rigidBody2D = gameObject.GetComponent<Rigidbody2D> ();
        _mining = gameObject.GetComponentInChildren<MiningScript>();

        EngineLevel = 1;
        HealthLevel = 1;
        ShieldLevel = 1;
        WeaponLevel = 1;
        MiningLevel = 1;

        _audio = gameObject.GetComponent<AudioSource>();

        _turrets = gameObject.GetComponentsInChildren<TurretScript>();
    }