Esempio n. 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
        });
    }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     _spriteRenderer = GetComponent <SpriteRenderer>();
     _level2Control  = GameObject.Find("Manager").GetComponent <Level2Control>();
 }