public override void Start(PlayerStatusManager psm)
 {
     base.Start(psm);
     psm.immaterialCloudEffect.Play();
     psm.playerMotor.layerManager.CallLayer(LayerManager.PlayerLayer.Immaterial, this);
     RecTransparentOn(psm.transform);
 }
        // 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);
        }
Beispiel #3
0
        public override void Start(PlayerStatusManager psm)
        {
            base.Start(psm);

            ComputeCurve();

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