Ejemplo n.º 1
0
 public override void Start(PlayerStatusManager psm)
 {
     base.Start(psm);
     psm.immaterialCloudEffect.Play();
     psm.playerMotor.layerManager.CallLayer(LayerManager.PlayerLayer.Immaterial, this);
     RecTransparentOn(psm.transform);
 }
Ejemplo n.º 2
0
        // Use this for initialization
        protected void BaseStart()
        {
            psm = GetComponent <PlayerStatusManager>();
            pc  = GetComponent <PlayerController>();

            Init();

            // Test Manager
            if (TestManager.singleton != null)
            {
                TestManager.singleton.SetPlayer(this);
            }

            // Camera
            playerCamera = Instantiate(cameraPrefab);
            playerCamera.GetComponent <PlayerCamera>().player = transform;
            pc.cam = playerCamera.GetComponent <Camera>();

            if (CameraManager.singleton != null)
            {
                CameraManager.singleton.ActivatePlayerCamera();
            }

            // UI
            userInterface = Instantiate(userInterfacePrefab);
            userInterface.GetComponent <UserInterface>().SetPlayerMotor(this);
        }
Ejemplo n.º 3
0
        public override void Start(PlayerStatusManager psm)
        {
            base.Start(psm);

            ComputeCurve();

            psm.moveMultiplicators.Add(this, 1f);
            psm.hasteTrailsEffect.Play();
            lastLength = 0f;
        }
Ejemplo n.º 4
0
 public virtual void Start(PlayerStatusManager psm)
 {
     this.psm  = psm;
     startTime = Time.time;
 }