void ClearScripts()
 {
     gameObjectSelected = null;
     platformRotation   = null;
     searchPlatform     = null;
     movePlatform       = null;
 }
 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);
 }
Beispiel #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);
 }