Example #1
0
 // Use this for initialization
 void Start()
 {
     player2CatchScript = player2CatchBox.GetComponent <CatchScript>();
     rotationInterface  = new PlayerRotationType1();
     rotationInterface.IdentifyPlayer(player2CatchBox);
     player1Reference = GameObject.FindGameObjectWithTag("Player1").transform;
 }
Example #2
0
 void Start()
 {
     groundScan      = FindObjectOfType <GroundScan>();
     catchScript     = FindObjectOfType <CatchScript>();
     spawnattavaUkko = groundScan.prefabCharacter;
     animatorScript  = FindObjectOfType <AnimatorScript>();
     isAnimating     = false;
 }
 public void IdentifyCatchBox(Transform catchBox)
 {
     playerCatchBox = catchBox;
     catchScript    = catchBox.GetComponent <CatchScript>();
 }
Example #4
0
 void Start()
 {
     ps          = GetComponent <ParticleSystem>();
     catchScript = FindObjectOfType <CatchScript>();
     camera      = Camera.main;
 }