Пример #1
0
 void ClearScripts()
 {
     gameObjectSelected = null;
     platformRotation   = null;
     searchPlatform     = null;
     movePlatform       = null;
 }
Пример #2
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);
 }
Пример #3
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);
 }