public Character(string name, Tile currentTile, BT_Tree behaviourTree, bool isRobot) { Name = name; world = GameManager.Instance.World; State = CharacterState.IdleAtDestination; CurrentTile = currentTile; IsRobot = isRobot; Resource = -1; pathfinder = world.Pathfinder; MovementPercentage = 0f; this.behaviourTree = behaviourTree; agentMemory = new BT_AgentMemory(this); StaticData.LoadNeeds(this); CurrentRotation = Quaternion.identity; targetRotation = Quaternion.identity; lastTileRotation = Quaternion.identity; isLastTileRotationSet = false; inaccessibleTilesTimers = new Dictionary <Tile, float>(); DestinationTile = CurrentTile; }
public BT_UINodeInfo(int depth, int rank, BT_TreeNode node, BT_UINodeInfo parent, BT_Tree tree) { Depth = depth; Index = rank; TreeNode = node; Parent = parent; Tree = tree; }