Beispiel #1
0
 private void Awake()
 {
     rigidbody = GetComponent <Rigidbody>();
     sound.PlayStart();
     lightEffects = GetComponent <LightEffects>();
     //lightEffects
 }
Beispiel #2
0
 public AssetLoader(DiContainer container, PluginMetadata pluginMetadata, MaterialSwapper materialSwapper)
 {
     _container        = container;
     _pluginMetadata   = pluginMetadata;
     _materialSwapper  = materialSwapper;
     _heartTask        = CreateHeartAsync();
     _playersPlaceTask = CreatePlayersPlaceAsync();
     using Stream defaultCoverStream  = GetEmbeddedResource("CustomFloorPlugin.Assets.LvlInsaneCover.png");
     DefaultPlatformCover             = defaultCoverStream.ReadTexture2D().ToSprite();
     using Stream fallbackCoverStream = GetEmbeddedResource("CustomFloorPlugin.Assets.FeetIcon.png");
     FallbackCover           = fallbackCoverStream.ReadTexture2D().ToSprite();
     MultiplayerLightEffects = new GameObject("LightEffects").AddComponent <LightEffects>();
 }
Beispiel #3
0
 // Use this for initialization
 void Start()
 {
     mCharScript = mainChar.GetComponent<MainCharRandomMov>();
     mFlashScript = mainCamera.GetComponent<FlashlightScript>();
     mLightEffects = mainLight.GetComponent<LightEffects>();
 }
 // Use this for initialization
 void Start()
 {
     mScript = MainCharacter.GetComponent<MainCharRandomMov>();
     lScript = AreaLight.GetComponent<LightEffects>();
 }