示例#1
0
 void Awake()
 {
     interactableObjectScript = GetComponent <VRTK_InteractableObject>();
     material     = GetComponent <Renderer>().material;
     scoreManager = ScoreManager.GetScoreInstance();
     hPManager    = HPManager.GetHPInstance();
 }
示例#2
0
    void Start()
    {
        image     = transform.GetChild(0).GetComponent <Image>();
        powerText = transform.GetChild(1).GetComponent <Text>();
        hPManager = HPManager.GetHPInstance();

        if (this.name.Contains("left"))
        {
            controllerType = "left";
        }
        else if (this.name.Contains("right"))
        {
            controllerType = "right";
        }
        else
        {
            controllerType = "None";
        }
    }
示例#3
0
 /**
  * Start()より先に呼ばれる
  * climbingStatusを初期化
  */
 void Awake()
 {
     climbingStatus = ClimbingStatus.GetInstance(playerClimbScript);
     hPManager      = HPManager.GetHPInstance();
     scoreManager   = ScoreManager.GetScoreInstance();
 }