Ejemplo n.º 1
0
 void Start()
 {
     cellLayer    = GameObject.Find("Canvas/layer_0/FightModule/layers/fight_mask/animLayer/cell").GetComponent <CellLayer>();
     lineLayer    = GameObject.Find("Canvas/layer_0/FightModule/layers/fight_mask/animLayer/line").GetComponent <LineLayer>();
     monsterLayer = GameObject.Find("Canvas/layer_0/FightModule/layers/fight_mask/animLayer/monster").GetComponent <MonsterLayer>();
     fightUI      = GameObject.Find("Canvas/layer_0/FightModule/fightUI").GetComponent <FightUI>();
 }
Ejemplo n.º 2
0
    void Start()
    {
        fightUI        = GameObject.Find("Canvas/layer_0/FightModule/fightUI").GetComponent <FightUI>();
        floorLayer     = GameObject.Find("Canvas/layer_0/FightModule/layers/fight_mask/animLayer/floor").GetComponent <FloorLayer>();
        coverLayer     = GameObject.Find("Canvas/layer_0/FightModule/layers/fight_mask/animLayer/cover").GetComponent <CoverLayer>();
        fancelayer     = GameObject.Find("Canvas/layer_0/FightModule/layers/fight_mask/animLayer/fence").GetComponent <FanceLayer>();
        floorHideLayer = GameObject.Find("Canvas/layer_0/FightModule/layers/fight_mask/animLayer/floor_hide").GetComponent <FloorHideLayer>();
        monsterLayer   = GameObject.Find("Canvas/layer_0/FightModule/layers/fight_mask/animLayer/monster").GetComponent <MonsterLayer>();
        effectLayer    = GameObject.Find("Canvas/layer_0/FightModule/layers/effect").GetComponent <EffectLayer>();
        fightModule    = GameObject.Find("Canvas/layer_0/FightModule").GetComponent <FightModule>();

        PropModel.Instance.PropRefreshEvent     = PropRefreshEvent;
        PropModel.Instance.PropChangeCellsEvent = PropChangeCellsEvent;
    }