using UnityEngine; public class GetComponentExample :MonoBehaviour// Attach this script to aGameObjectas a component. { // Create a reference to anotherGameObjectin the scene. Set a value for this in the Other Game Object field // in the Inspector window before entering Play mode. The referenc...
actingCharacter.GetComponent<SmokeMeter> ().CalcWork (refworkUpdate);//Debug.Log ("After: " + workUpdate);if(OwnerCharacter == actingCharacter) { Debug.Log ("working at my desk! "); WorkMeterManager.GetInstance ().AddWork (OwnerCharacter, workUpdate); }else{//WorkMeterManager.GetInstance (...
getComponent(Unity3dConsoleToolWindowService.class); } Example 15Source File: ChangeListManagerImpl.java From consulo with Apache License 2.0 4 votes public static ChangeListManagerImpl getInstanceImpl(final Project project) { return (ChangeListManagerImpl)project.getComponent(ChangeListManager.class); }...
UnityEngine.AI UnityEngine.AMD UnityEngine.Android UnityEngine.Animations UnityEngine.Apple UnityEngine.Assertions UnityEngine.Audio UnityEngine.Categorization UnityEngine.CrashReportHandler UnityEngine.DedicatedServer UnityEngine.Device UnityEngine.Diagnostics UnityEngine.Events UnityEngine.Experimental UnityEngine....