void Start() { diveFPSController = this.gameObject.GetComponent <DiveFPSController> (); playing = false; AudioSource[] aSources = GetComponents <AudioSource>(); footstepSound = aSources[audioSourceIndex]; }
void Start() { diveFPSController = this.gameObject.GetComponent <DiveFPSController> (); nextFoot = Foot.Left; AudioSource[] aSources = GetComponents <AudioSource>(); footstepSoundL = aSources[0]; footstepSoundR = aSources[1]; }
void Start() { cc = this.gameObject.GetComponent <CharacterController> (); diveFPSController = Grid.playerComponent; startingRadius = cc.radius; startingHeight = cc.height; finalRadius = growthFactor * cc.radius; finalHeight = growthFactor * cc.height; }
public static void LoadAllGameObjects() { GameObject o; mogaManagerObject = SafeFind("/MogaControllerManager"); playerObject = SafeFind("/Player"); playerModel = SafeFind("/Player/PlayerModel"); cameraObject = SafeFind("/Player/Dive_Camera"); leftCameraObject = SafeFind("/Player/Dive_Camera/Camera_left"); rightCameraObject = SafeFind("/Player/Dive_Camera/Camera_right"); playerComponent = SafeComponent <DiveFPSController> (playerObject, "DiveFPSController"); rightHandItemSlot = SafeFind("/Player/Dive_Camera/RightHandItemSlot"); fireBreath = SafeFind("/Player/Dive_Camera/FireBreath"); // todo: fix so that we can find inactive objects if (fireBreath != null) { fireBreath.SetActive(false); } o = SafeFind("/FaceLaserText"); facelaserText = SafeComponent <GUIText> (o, "GUIText"); lightbulb = SafeFind("/Lightbulb"); roomObject = SafeFind("/Room"); monitorSetA = SafeFind("/Room/MonitorSetA"); monitorSetB = SafeFind("/Room/MonitorSetB"); actualRoomObject = SafeFind("/Room/ActualRoom"); ceilingObject = SafeFind("/Room/ActualRoom/Ceiling"); utopiaWorld = SafeFind("/UtopiaWorld"); dystopiaWorld = SafeFind("/DystopiaWorld"); dystopiaWorldLight = SafeFind("/DystopiaWorld/Directional light"); targetWorld = SafeFind("/TargetWorld"); blackShell = SafeFind("/BlackShell"); realEstate = SafeFind("/RealEstate"); twitchRoomObject = SafeFind("/RoomTwitch"); twitchVideoFeed = SafeFind("/RoomTwitch/TwitchVideoFeed"); twitchVideoManager = SafeFind("/RoomTwitch/VideoManager"); if (twitchRoomObject != null) { twitchRoomObject.SetActive(false); } posterRoom = SafeFind("/PosterRoom"); posterTwitch = SafeFind("/PosterTwitch"); materialMonitorDefault = LoadMaterial("Materials/Monitor-Default"); materialMonitorPreviewUtopia = LoadMaterial("Materials/Monitor-Polyworld-Preview"); materialMonitorMainUtopia = LoadMaterial("Materials/Monitor-Polyworld-Main"); materialMonitorHardwareUtopia = LoadMaterial("Materials/Monitor-Polyworld-Hardware"); materialMonitorPreviewAlien = LoadMaterial("Materials/Monitor-Alien-Preview"); materialMonitorMainAlien = LoadMaterial("Materials/Monitor-Alien-Main"); materialMonitorHardwareAlien = LoadMaterial("Materials/Monitor-Alien-Hardware"); materialMonitorPreviewTarget = LoadMaterial("Materials/Monitor-Target-Preview"); materialMonitorMainTarget = LoadMaterial("Materials/Monitor-Target-Main"); materialMonitorHardwareTarget = LoadMaterial("Materials/Monitor-Target-Hardware"); }
void Start() { diveFPSController = this.gameObject.GetComponent <DiveFPSController> (); AudioSource[] aSources = GetComponents <AudioSource>(); footstepSound = aSources[1]; }
void Start() { anim = GetComponent <Animator> (); controller = Grid.playerComponent; player = Grid.playerObject; }