- Home /
Question by
seb-lopez · Feb 02, 2015 at 01:48 PM ·
javascriptscripting problemfindcompatibility
CSharp script can't find th jv CharacterMotor !!
like the tilte says my script in Csharp can't find the Charactermotor, i think it's because the motor script is in java and i can't find a way to detect it! here the script.
using UnityEngine;
using System.Collections;
public class horse : MonoBehaviour {
CharacterController cc;
CharacterMotor cm; // here the part
GameObject player;
Transform defaultPlayerTransform;
public bool isDriving = false;
// Use this for initialization
void Start () {
cc = GameObject.FindObjectOfType<CharacterController>();
cm = GameObject.FindObjectOfType<CharacterMotor>(); // here where it suppose to find
player = cm.gameObject;
defaultPlayerTransform = player.transform.parent;
//...
Comment
Your answer
Follow this Question
Related Questions
Finding A Rigidbody's Rotation Speed And Direction 2 Answers
Problem with Javascript calling PHP pages in WebGL 0 Answers
Trouble working with a Custom class, JavaScript. 2 Answers
Scripted tank track bones behave strange 0 Answers
Best way to emulate Swift String Interpolation in UnityScript? 1 Answer