コード例 #1
0
 ///--------------------------------------------------------------
 /// <summary>
 /// 開始処理
 /// </summary>
 ///--------------------------------------------------------------
 void Awake()
 {
     m_instance = this;
     m_maxMakerCount = 3;
     m_makerCount = 0;
     m_isMakerMax = false;
 }
コード例 #2
0
    ///--------------------------------------------------------------
    /// <summary>
    /// ゲットインスタンス
    /// </summary>
    /// <returns></returns>
    ///--------------------------------------------------------------
    public static LockOnManager GetInstance()
    {
        if( m_instance == null )
        {
            GameObject go = new GameObject("");
            m_instance = go.AddComponent<LockOnManager>();
        }

        return m_instance;
    }
コード例 #3
0
 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;
 }
コード例 #4
0
    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();
    }
コード例 #5
0
 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();
 }
コード例 #6
0
ファイル: SendVisible.cs プロジェクト: zyouyowa/Unity_cs
 void Start()
 {
     lockOnManager = GameObject.FindGameObjectWithTag ("GameManager").GetComponent<LockOnManager> ();
     isRendering = false;
 }
コード例 #7
0
ファイル: PlayerLockOn.cs プロジェクト: zyouyowa/Unity_cs
 void Start()
 {
     flag_down = flag = flag_up = false;
     lockOnManager = GameObject.FindWithTag ("GameManager").GetComponent<LockOnManager> ();
     lookOn = false;
 }