Exemplo n.º 1
0
 void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else if (Instance != this)
     {
         Destroy(gameObject);
     }
 }
Exemplo n.º 2
0
 public override void Create()
 {
     Product      = new ProductB();
     AirCondition = new AirConditionB();
     Camera       = new CameraB();
 }