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); }
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); }