Пример #1
0
    //----------------------------------------------------------------------
    // 初期化
    //----------------------------------------------------------------------
    // @Param   none
    // @Return	bool    成功か失敗
    // @Date	2014/10/24  @Update 2014/10/24  @Author T.Kawashita
    //----------------------------------------------------------------------
    protected bool Init()
    {
        m_pos             = new Vector3(0.0f, 0.0f, 0.0f);
        m_speed           = new Vector3(0.0f, 0.0f, 0.0f);
        m_angle           = new Vector3(0.0f, 0.0f, 0.0f);
        m_status          = CPlayerManager.ePLAYER_STATUS.eWAIT;
        m_oldStatus       = CPlayerManager.ePLAYER_STATUS.eNONE;
        m_viewPointStatus = CPlayerManager.eVIEW_POINT_STATUS.ePLAYER;

        m_human      = new CHuman();
        m_playerData = new CPlayerData();
        m_action     = new CPlayerAction();

        m_chargeFrame = 0;
        m_isRtPress   = false;
        m_isLtPress   = false;
        m_isBall      = false;
        m_isGetBall   = false;
        m_isOverRimit = false;
        m_isSE        = false;

        m_gauge    = this.transform.GetComponent <CPlayerGauge>();
        m_playerSE = this.transform.GetComponent <CPlayerSE>();

        return(true);
    }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        m_human = gameObject.GetComponent <CHuman>();
        if (isLocalPlayer || isServer)
        {
            gameObject.GetComponent <CHumanControl>().enabled = true;
            m_human.IsLocal = true;
        }

        if (isLocalPlayer)
        {
            Cmd_SyncTransform(transform.position, transform.rotation);
            Cmd_SyncState((int)m_human.PStateMachine.GlobalState().ID, (int)m_human.PStateMachine.CurrentState().ID);
        }
    }
Пример #3
0
 /*!  PutCandle( Vector3 )
  *!   \details	ロウソクの設置
  *!
  *!   \return	treu  … 祭壇
  *!				false … ノーマル
  */
 public void PutCandle(Vector3 pos, CHuman human)
 {
     SetRenderer(true);
     // m_smoke.gameObject.SetActive( false );
     pos.y = 0.1F;
     transform.position = pos;           // ポジション設置
     m_isFire           = true;          // 点火
     if (human)
     {
         human.ShumanScore.setAlterCandle += 1;              // スコア追加 +1
     }
     if (human.IsLocal)
     {
         CSoundManager.Instance.PlaySE(EAudioList.SE_CandlePut);                     // 置く音
         CSoundManager.Instance.PlaySE(EAudioList.SE_CandleIgnition);                // 着火音
     }
 }
Пример #4
0
    //----------------------------------------------------------------------
    // コンストラクタ
    //----------------------------------------------------------------------
    // @Param   none
    // @Return	none
    // @Date	2014/10/14  @Update 2014/10/14  @Author T.Kawashita
    //----------------------------------------------------------------------
    void Start()
    {
        m_pos             = new Vector3();
        m_speed           = new Vector3();
        m_angle           = new Vector3();
        m_status          = CPlayerManager.ePLAYER_STATUS.eNONE;
        m_oldStatus       = CPlayerManager.ePLAYER_STATUS.eNONE;
        m_viewPointStatus = CPlayerManager.eVIEW_POINT_STATUS.ePLAYER;

        m_human      = new CHuman();
        m_playerData = new CPlayerData();
        m_action     = new CPlayerAction();

        m_chargeFrame = 0;
        m_isRtPress   = false;
        m_isLtPress   = false;
        m_isBall      = false;
        m_isGetBall   = false;
        m_isOverRimit = false;
        m_isSE        = false;
    }
Пример #5
0
 public void HumanSelect(CHuman pTarget)
 {
     if (pTarget == null)
     {
         return;
     }
     if (pTarget != _selectedPlayer)
     {
         if (pTarget.GetGod() == 0 || pTarget.GetGod() == _playerNumber)
         {
             if (_selectedPlayer != null)
             {
                 _selectedPlayer.EnableCastingParticles(_playerNumber, false);
                 _slider.SetActive(false);
             }
             _selectedPlayer = pTarget;
             if (_selectedPlayer != null)
             {
                 _selectedPlayer.EnableCastingParticles(_playerNumber, true);
             }
         }
     }
 }
Пример #6
0
 /*! SetHumanScore
  *!   \details	ヒューマンのスコア設定
  *!
  */
 public void SetHumanScore(CHuman human)
 {
     m_humans[human.ID].resuscitation  = human.ShumanScore.resuscitation;
     m_humans[human.ID].setAlterCandle = human.ShumanScore.setAlterCandle;
     m_humans[human.ID].setCandle      = human.ShumanScore.setCandle;
 }
Пример #7
0
 // Use this for initialization
 void Start()
 {
     m_human = this.GetComponent <CHuman>();
 }