Пример #1
0
    protected override void OStart()
    {
        //_tileTick = FindLuaFunc<TurnMethod>("OnTurn");

        luaFunction = LuaEnv.Global.Get <LuaFunction>("OnTurn");

        data          = new TileHeroData(this);
        Level2Control = GameObject.Find("Manager").GetComponent <Level2Control>();
        Level2Control.Players.Add(new Level2Control.TileHeroInfo()
        {
            Player = Player,
            Hero   = this
        });
    }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     _spriteRenderer = GetComponent <SpriteRenderer>();
     _level2Control  = GameObject.Find("Manager").GetComponent <Level2Control>();
 }