public void Setting() { Ctrl = dicCtrls[strSel]; if (Ctrl != null) { Ctrl.Init(this.gameObject); Ctrl.SettingAction(); Ctrl.BeginAction(); } }
// Use this for initialization void Start() { Ctrl = null; dicCtrls = new Dictionary <string, AttackObsParent>(); dicCtrls.Add("술취한새", new DrunkBirdCtrl()); dicCtrls.Add("외계인", new AlianCtrl()); dicCtrls.Add("먼지", new DustCtrl()); dicCtrls.Add("바이러스", new VirusCtrl()); dicCtrls.Add("바이러스무기", new VirusWeaponCtrl()); dicCtrls.Add("운석", new MeteoCtrl()); dicCtrls.Add("스패너", new SpanorCtrl()); Setting(); }