コード例 #1
0
 void SetScripts()
 {
     Debug.Log(this + "SetScripts, gameObjectSelected: " + gameObjectSelected.name);
     searchPlatform   = gameObjectSelected.GetComponent <SearchPlatform>();
     platformRotation = gameObjectSelected.GetComponent <PlatformRotation>();
     movePlatform     = gameObjectSelected.GetComponent <MovePlatform>();
     movePlatform.SetLastPosition(gameObjectSelected.transform.position);
     movePlatform.SetCamera(gameplayCamera);
 }
コード例 #2
0
 void SetScripts()
 {
     searchPlatform   = gameObjectSelected.GetComponent <SearchPlatform>();
     platformRotation = gameObjectSelected.GetComponent <PlatformRotation>();
     movePlatform     = gameObjectSelected.GetComponent <MovePlatform>();
     changeColor      = gameObjectSelected.GetComponent <ChangeColor>();
     movePlatform.SetLastPosition(gameObjectSelected.transform.position);
     movePlatform.SetCamera(gameplayCamera);
 }