// 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>(); }
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); } }
/*! SetGhostScore *! \details ゴーストのスコア設定 *! */ public void SetGhostScore(GhostMain ghost) { m_ghost.hitCandy = ghost.GhostScore.hitCandy; m_ghost.knockOut = ghost.GhostScore.knockOut; }
// Use this for initialization void Start() { m_ghostMain = gameObject.GetComponent <GhostMain>(); }
// Use this for initialization void Start() { m_ghost = gameObject.transform.parent.gameObject.GetComponent <GhostMain>(); }