示例#1
0
    public void Setting()
    {
        Ctrl = dicCtrls[strSel];

        if (Ctrl != null)
        {
            Ctrl.Init(this.gameObject);
            Ctrl.SettingAction();
            Ctrl.BeginAction();
        }
    }
示例#2
0
    // 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();
    }