示例#1
0
 private void RemoveObstructer(Obstructer item, bool staticState = false)
 {
     if (!staticState)
     {
         m_ObstructList.Remove(item);
     }
     m_AllObstructList.Remove(item);
 }
示例#2
0
 private void AddObstructer(Obstructer item, bool staticState = false)
 {
     if (!staticState)
     {
         m_ObstructList.Add(item);
     }
     m_AllObstructList.Add(item);
 }
示例#3
0
    public MoveController(Obstructer target)
    {
        m_Obstructer = target;
        m_Speed      = GameDefine.MoveSpeed;
        //摇杆
        ETCJoystick etcJoystick = ETCInput.GetControlJoystick("Joystick");

        etcJoystick.onMove.AddListener(JoystickMove);
    }
示例#4
0
    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);
    }