예제 #1
0
        public void AddReferences(string[] referencePaths)
        {
            var referencePathsToAdd = referencePaths.Except(References);

            foreach (var referencePath in referencePathsToAdd)
            {
                var referenceFilename = Path.GetFileName(referencePath);
                if (References.All(existingReferenceFilename => Path.GetFileName(existingReferenceFilename) != referenceFilename))
                {
                    Session.AddReference(referencePath);
                    References.Add(referencePath);
                }
            }
        }
예제 #2
0
 public bool NeedsEntryPointAdded()
 {
     return(!DefineConstraints.Contains("UNITY_DOTS_ENTRYPOINT") && References.All(r => r.NeedsEntryPointAdded()));
 }
예제 #3
0
 public override bool IsPossible() => References.Length == 2 && References.All(o => o.Length == References[0].Length);