virtual public void Init(LogicPlayground logicPlayground, int _x, int _y, LogicJack _owner, Growth _growth = Growth.Small) { x = _x; y = _y; growth = _growth; owner = _owner; }
void Start() { Debug.Log("Server Start"); playground = new LogicPlayground(gridX, gridY, offsetX, offsetY); character = new LogicJack[2]; var l1 = new LogicJack(PLAY.ER1, 0, 0); l1.ac = acPerTurn; character[0] = l1; var l2 = new LogicJack(PLAY.ER2, gridX - 1, 0); l2.ac = acPerTurn; character[1] = l2; l1.Opponent = l2; l2.Opponent = l1; ready = new bool[2] { false, false }; photonView.RPC("InitClient", PhotonTargets.AllViaServer, gridX, gridY, offsetX, offsetY); }
public override void Init(LogicPlayground logicPlayground, int _x, int _y, LogicJack _owner, Growth _growth = Growth.Small) { base.Init(logicPlayground, _x, _y, _owner, _growth); type = TreeType.Basic; }
public override void Init(LogicPlayground logicPlayground, int _x, int _y, LogicJack _owner, Growth _growth = Growth.Small) { base.Init(logicPlayground, _x, _y, _owner, _growth); logicPlayground.onTurnChange += GiveBonusAc; type = TreeType.BonusAc; }
public override void Flush(LogicPlayground logicPlayground) { logicPlayground.onTurnChange -= GiveBonusAc; }
virtual public void Flush(LogicPlayground logicPlayground) { }
public override void Init(LogicPlayground logicPlayground, int _x, int _y, LogicJack _owner, Growth _growth = Growth.Small) { base.Init(logicPlayground, _x, _y, _owner, _growth); logicPlayground.onPlayerTryMove += MakeThemMoveHarder; type = TreeType.Swamp; }
public override void Flush(LogicPlayground logicPlayground) { logicPlayground.onPlayerTryMove -= MakeThemMoveHarder; }