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