void Awake() { interactableObjectScript = GetComponent <VRTK_InteractableObject>(); material = GetComponent <Renderer>().material; scoreManager = ScoreManager.GetScoreInstance(); hPManager = HPManager.GetHPInstance(); }
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"; } }
/** * Start()より先に呼ばれる * climbingStatusを初期化 */ void Awake() { climbingStatus = ClimbingStatus.GetInstance(playerClimbScript); hPManager = HPManager.GetHPInstance(); scoreManager = ScoreManager.GetScoreInstance(); }