コード例 #1
0
ファイル: DiskFactory1.cs プロジェクト: yzhmeng/Unity
 private void Awake()
 {
     if (_instance == null)
     {
         _instance      = Singleton <DiskFactory1> .Instance;
         _instance.used = new List <GameObject>();
         _instance.free = new List <GameObject>();
     }
 }
コード例 #2
0
 protected void Start()
 {
     sceneController = (ShootController)SSDirector.getInstance().currentScenceController;
     ArrowFactory    = sceneController.factory;
     sceneController.actionManager = this;
 }