///-------------------------------------------------------------- /// <summary> /// 開始処理 /// </summary> ///-------------------------------------------------------------- void Awake() { m_instance = this; m_maxMakerCount = 3; m_makerCount = 0; m_isMakerMax = false; }
///-------------------------------------------------------------- /// <summary> /// ゲットインスタンス /// </summary> /// <returns></returns> ///-------------------------------------------------------------- public static LockOnManager GetInstance() { if( m_instance == null ) { GameObject go = new GameObject(""); m_instance = go.AddComponent<LockOnManager>(); } return m_instance; }
void Start() { lookTarget = GameObject.FindGameObjectWithTag(Helpers.Tags.CameraFollowTarget).transform; pivotTarget = GameObject.FindGameObjectWithTag(Helpers.Tags.CameraPositionPivot).GetComponent <CameraPositionPivotManager>(); playerStatus = GameObject.FindGameObjectWithTag(Helpers.Tags.Player).GetComponent <PlayerStatus>(); playerMovement = GameObject.FindGameObjectWithTag(Helpers.Tags.Player).GetComponent <PlayerMovementManager>(); lockOnManager = playerStatus.GetComponent <LockOnManager>(); state = CameraMode.Free; transform.position = lookTarget.position + transform.rotation * distanceFromTarget; }
public void Start() { uiManager = this.gameObject.GetComponent <UIManager>(); spellSource = this.gameObject.FindObjectInChildren("SpellSource").transform; fireMode = gameObject.GetComponentInChildren <FireMode>(); windMode = gameObject.GetComponentInChildren <WindMode>(); iceMode = gameObject.GetComponentInChildren <IceMode>(); activeSpellMode = fireMode; cameraManager = Camera.main.GetComponent <CameraManager>(); lockOnManager = gameObject.GetComponent <LockOnManager>(); uiManager.UISetReadySpellIcon(); }
void Start() { playerMovement = gameObject.GetComponent <PlayerMovementManager>(); magicManager = gameObject.GetComponent <MagicManager>(); uiManager = gameObject.GetComponent <UIManager>(); cameraManager = Camera.main.GetComponent <CameraManager>(); cameraPivot = gameObject.GetComponentInChildren <CameraPositionPivotManager>(); playerStatus = gameObject.GetComponent <PlayerStatus>(); lockOn = gameObject.GetComponent <LockOnManager>(); RightTrigger = AxisState.NotHeld; RightDPad = AxisState.NotHeld; LeftDPad = AxisState.NotHeld; UpDPad = AxisState.NotHeld; DownDPad = AxisState.NotHeld; HideCursor(); }
void Start() { lockOnManager = GameObject.FindGameObjectWithTag ("GameManager").GetComponent<LockOnManager> (); isRendering = false; }
void Start() { flag_down = flag = flag_up = false; lockOnManager = GameObject.FindWithTag ("GameManager").GetComponent<LockOnManager> (); lookOn = false; }