Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        //ゲットー
        // m_ControlType = gameObject.GetComponent<>();
        m_ghostMain     = gameObject.GetComponent <GhostMain>();
        matPath_head    = this.transform.FindChild("polySurface16");
        meshrender_head = matPath_head.GetComponent <SkinnedMeshRenderer>();

        matPath_body    = this.transform.FindChild("polySurface18");
        meshrender_body = matPath_body.GetComponent <SkinnedMeshRenderer>();
    }
Esempio n. 2
0
 void Start()
 {
     if (transform.GetComponent <GhostMain>())
     {
         m_ghostMain = transform.GetComponent <GhostMain>();
         m_ghostMain.IsLocalPlayer = isLocalPlayer;
     }
     if (isLocalPlayer)
     {
         transform.GetComponent <GhostControl>().enabled = true;
         Cmd_UpdateTransform(transform.position, transform.rotation);
     }
 }
Esempio n. 3
0
 /*! SetGhostScore
  *!   \details	ゴーストのスコア設定
  *!
  */
 public void SetGhostScore(GhostMain ghost)
 {
     m_ghost.hitCandy = ghost.GhostScore.hitCandy;
     m_ghost.knockOut = ghost.GhostScore.knockOut;
 }
Esempio n. 4
0
 // Use this for initialization
 void Start()
 {
     m_ghostMain = gameObject.GetComponent <GhostMain>();
 }
Esempio n. 5
0
 // Use this for initialization
 void Start()
 {
     m_ghost = gameObject.transform.parent.gameObject.GetComponent <GhostMain>();
 }