private void RemoveObstructer(Obstructer item, bool staticState = false) { if (!staticState) { m_ObstructList.Remove(item); } m_AllObstructList.Remove(item); }
private void AddObstructer(Obstructer item, bool staticState = false) { if (!staticState) { m_ObstructList.Add(item); } m_AllObstructList.Add(item); }
public MoveController(Obstructer target) { m_Obstructer = target; m_Speed = GameDefine.MoveSpeed; //摇杆 ETCJoystick etcJoystick = ETCInput.GetControlJoystick("Joystick"); etcJoystick.onMove.AddListener(JoystickMove); }
public CharacterObject AddPlayer(GameDefine.Camp camp, Vector2 position) { CharacterObject characterObject = CreateCharacterObject(camp, position); MoveController moveController = new MoveController(characterObject); characterObject.SetMoveController(moveController); m_Player = characterObject; return(characterObject); }